package net.lunjin.dao;

import java.math.BigDecimal;
import java.util.List;

import net.lunjin.bean.Organizations;
import finaler.db.BaseDao;
import finaler.util.Page;
import finaler.util.PageList;

public interface OrganizationsDao extends BaseDao<Organizations> {
	
	public PageList getOrgList(Page page) throws Exception ;
	public PageList getRecommendOrgList(Page page) throws Exception ;
	public PageList getHighscoreOrgList(Page page) throws Exception ;
	public PageList getLowscoreOrgList(Page page) throws Exception ;
	
	/**
	 * 由于BaseDao类的 select * 效率太慢,所以重写
	 */
	@Override
	public Organizations getRandomRecord() throws Exception ;
	public List<Organizations> getAuditList()throws Exception ;
	public int getwantSum()throws Exception;
	public void autoUpdateHit()throws Exception;
	public int getExistNum(BigDecimal orgid, String Orgshortname)throws Exception ;
	public List<Organizations> getRandomComList(int limit)throws Exception ;
}
